<?php
/**
 * Created by PhpStorm.
 * User: lengbin
 * Date: 2018/4/29
 * Time: 上午12:31
 */

namespace common\core\filter;

use common\core\base\InvalidException;
use common\helpers\CodeHelper;

class CompositeAuth extends \yii\filters\auth\CompositeAuth
{

    use InvalidException;

    /**
     *
     *
     * @param \yii\web\Response $response
     *
     * @throws \yii\base\UserException
     */
    public function handleFailure($response)
    {
        $this->invalidRequestException('', CodeHelper::TOKEN_INVALID);
    }
}